package com.jckj.core.entity;

import java.io.Serializable;

public class InspectionTargetKey implements Serializable {
    private String parkId;

    private String inspecId;

    private static final long serialVersionUID = 1L;

    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId == null ? null : parkId.trim();
    }

    public String getInspecId() {
        return inspecId;
    }

    public void setInspecId(String inspecId) {
        this.inspecId = inspecId == null ? null : inspecId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InspectionTargetKey other = (InspectionTargetKey) that;
        return (this.getParkId() == null ? other.getParkId() == null : this.getParkId().equals(other.getParkId()))
            && (this.getInspecId() == null ? other.getInspecId() == null : this.getInspecId().equals(other.getInspecId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getParkId() == null) ? 0 : getParkId().hashCode());
        result = prime * result + ((getInspecId() == null) ? 0 : getInspecId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", parkId=").append(parkId);
        sb.append(", inspecId=").append(inspecId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}